<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./lib/bootstrap/css/bootstrap.css">
  <style>
    #main-tbl img {
      width: 50px;
    }

    .rea {
      position: relative;
    }

    .abs {
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
      width: 100%;
      height: 100%;

    }
  </style>
</head>

<body>
  <!-- 
    1 面板 panel 
    
   -->

  <div id="main" class="container">
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title">英雄列表管理</h3>
      </div>
      <div class="panel-body">

        <div class="hero-tool clearfix ">
          <div class="row">
            <div class="col-xs-8">
              <div class="input-group">
                <input type="text" class="form-control hero-name" placeholder="输入英雄信息">
                <span class="input-group-btn">
                  <button class="btn btn-default hero-search" type="button">搜索</button>
                </span>
              </div>
            </div>
            <div class="col-xs-4">
              <button id="addHero" class="btn btn-success">添加英雄</button>
            </div>
          </div>
        </div>

        <!-- 表格 -->
        <table id="main-tbl" class="table table-bordered">
          <thead>
            <tr>
              <th>编号</th>
              <th>英雄名称</th>
              <th>英雄性别</th>
              <th>头像</th>
              <th>操作区</th>
            </tr>
          </thead>
          <tbody>

          </tbody>
        </table>
      </div>
    </div>
  </div>


  <!-- bootstrap 模态框 -->
  <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
              aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="myModalLabel">添加英雄</h4>
        </div>
        <div class="modal-body">
          <!-- 名称 性别 -->
          <form class="form-horizontal">
            <div class="form-group">
              <label for="name" class="col-sm-2 control-label">英雄名称</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" id="name" placeholder="请输入英雄名称">
              </div>
            </div>
            <div class="form-group">
              <label for="gender" class="col-sm-2 control-label">性别</label>
              <div class="col-sm-10">
                <select id="gender" class="form-control">
                  <option value="女">女</option>
                  <option value="男">男</option>
                </select>
              </div>
            </div>
          </form>



          <!-- 名称 性别 -->
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
          <button type="button" id="save-btn" class="btn btn-primary">保存</button>
        </div>
      </div>
    </div>
  </div>
  <!-- bootstrap 模态框 -->


  <script src="./js/jquery.js"></script>
  <script src="./lib/bootstrap/js/bootstrap.js"></script>
  <script src="./js/04-英雄列表-查询.js"></script>
</body>

</html>